//
//  MasterViewController.h
//  webservice2
//
//  Created by Anders Petersen on 30/07/14.
//  Copyright (c) 2014 Anders Petersen. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <CoreData/CoreData.h>

@interface MasterViewController : UITableViewController <NSXMLParserDelegate, UITableViewDelegate, UITableViewDataSource >

@property (strong, nonatomic) NSFetchedResultsController *fetchedResultsController;
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;


//FROM RSS TUTORIAL

@property (strong, nonatomic) IBOutlet UITableView *tableView;


- (IBAction)removeDataFile:(id)sender;


//FROM AUTO FETCH TUTORIAL


@property (nonatomic, strong) UIRefreshControl *refreshControl;

@property (nonatomic, strong) NSMutableArray *feeds; /// this already exists as feeds ,. a private property ... but we take this instead

@property (nonatomic, strong) NSString *dataFilePath;

-(void)refreshData;

-(void)performNewFetchedDataActionsWithDataArray:(NSArray *)dataArray;

-(void)fetchNewDataWithCompletionHandler;
@end
